<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="security"
	uri="http://www.springframework.org/security/tags"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@page import="java.io.FileOutputStream"%>
<%@page import="java.sql.Connection"%>
<%@page import="java.sql.ResultSet"%>
<%@page import="java.sql.Statement"%>
<%@page import="java.io.File"%>
<%@page import="java.io.OutputStream"%>
<html>
<head>
<title>Muzycy.pl - serwis informacyjno usługowy o muzykach</title>
<META HTTP-EQUIV="Content-Type"
	CONTENT="text/html; charset=windows-1250">
<link href="css/styles.css" rel="stylesheet" type="text/css">
</head>

<div id="body">
	<div id="menu">
	<div class="logged">
		Zalogowany jako: <b><security:authentication
						property="principal.username" /></b>
		</div>
		<ul>
			<li>
			<a href="uzytkownicy.htm" class="active"><img src="images/butt_users.jpg" alt="" width="160" height="67" />	</a>
			</li>
			<li>
			<a href="adminnews.htm"><img src="images/butt_news.jpg"	alt="" width="100" height="67" /></a>
			</li>
			<li>
			<a href="comments.htm"><img src="images/butt_comments.jpg" alt="" width="160" height="67" /></a>
			</li>
			<li>
			<a href="mojekonto.htm"><img src="images/butt_logout.jpg" alt="" width="125" height="67" /></a>
			</li>			
		</ul>
		<div class="slogan">
			<img src="images/slogan_listnews.jpg" alt="" width="594" height="144" />
		</div>
	</div>
	<div id="overview">
		
		<div id="box">
			
			  		<h1>Lista użytkowników</h1>
					<c:if test="${fn:length(usersList) > 0}">
						<table cellpadding="5">
							<tr>
								<th>Login</th>
								<th>Akcja</th>

							</tr>
							<c:forEach items="${usersList}" var="user" varStatus="status">
								<tr>
									<td>${user.username}</td>
									<td><a
										href="/Muzycy.pl/edituser=${user.username }.htm">Edytuj</a>
									</td>
									<td><a
										href="/Muzycy.pl/deleteuser=${user.username }.htm">Usuń</a>
									</td>
								</tr>
							</c:forEach>
						</table>
					</c:if>
					

		</div>

		<div id="footer" style="margin-left:0px">
			<div id="copyright">
				Copyright Czesiu. All rights reserved. Design by <a
					href="http://nyan.cat">NyanCat</a>
			</div>
		</div>
	</div>
</div>
</html>